import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import User from '@/views/user/index.vue'
Vue.use(VueRouter)

const routes: Array<RouteConfig> = [
  {
    path: '/', // 个人中心
    name: 'User',
    component: User
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
